package com.yunxin.core.infra.persistence.entity.user;

import java.io.Serializable;
import java.util.Date;

/**
 * 用户授权表
 *
 * @author zero°
 * @since   2023-06-02
 */
public class UserAuthDO implements Serializable {
    /**
     * 主键
     */
    private Long id;

    /**
     * 手机号 邮箱 用户名或第三方应用的唯一标识
     */
    private String identifier;

    /**
     * 唯一标识md5
     */
    private String identifierMd5;

    /**
     * 授权类型 1.手机号 2.微信
     */
    private Integer authType;

    /**
     * 授权主体
     */
    private String authSubject;

    /**
     * 用户code
     */
    private String userCode;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date editTime;

    /**
     * 版本号
     */
    private Long version;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getIdentifier() {
        return identifier;
    }

    public void setIdentifier(String identifier) {
        this.identifier = identifier;
    }

    public String getIdentifierMd5() {
        return identifierMd5;
    }

    public void setIdentifierMd5(String identifierMd5) {
        this.identifierMd5 = identifierMd5;
    }

    public Integer getAuthType() {
        return authType;
    }

    public void setAuthType(Integer authType) {
        this.authType = authType;
    }

    public String getAuthSubject() {
        return authSubject;
    }

    public void setAuthSubject(String authSubject) {
        this.authSubject = authSubject;
    }

    public String getUserCode() {
        return userCode;
    }

    public void setUserCode(String userCode) {
        this.userCode = userCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getEditTime() {
        return editTime;
    }

    public void setEditTime(Date editTime) {
        this.editTime = editTime;
    }

    public Long getVersion() {
        return version;
    }

    public void setVersion(Long version) {
        this.version = version;
    }
}